import 'package:flutter/material.dart';
import '../../utils/screenAdapter.dart';

class CodeButton extends StatelessWidget {
  final void Function()? onPressed;
  final String textContent;
  const CodeButton({super.key, this.onPressed, required this.textContent});

  @override
  Widget build(BuildContext context) {
    return Container(
      height: ScreenAdapter.height(130),
      child: ElevatedButton(
        style: ButtonStyle(
          backgroundColor: WidgetStateProperty.all(Colors.orange),
          foregroundColor: WidgetStateProperty.all(Colors.white),
        ),
        onPressed: onPressed,
        child: Text(textContent),
      ),
    );
  }
}
